package com.motlepluslong.model;

public class Game {

	private char[] letters;
	private Integer[] nbLetters;
	private String[] words;
	private int[] scoreByWords;
	private int played;
	private String longestWord;
	
	public Game(){
		this.letters = new char[10];
		this.words = new String[5];
		this.nbLetters = new Integer[26];
		this.scoreByWords = new int[5];
		this.played = 0;
		this.longestWord = null;
	}

	/**
	 * @return the countRemaining
	 */
	public int getPlayed() {
		return played;
	}
	
	/**
	 * @return the score
	 */
	public int getScore() {
		int score = 0;
		for(int i = 0;i<5;i++)
			score+=this.scoreByWords[i];
		return score;
	}

	/**
	 * @return the letters
	 */
	public char[] getLetters() {
		return letters;
	}

	/**
	 * @return the words
	 */
	public String[] getWords() {
		return words;
	}

	/**
	 * @return the longestWord
	 */
	public String getLongestWord() {
		return longestWord;
	}

	/**
	 * @param longestWord the longestWord to set
	 */
	public void setLongestWord(String longestWord) {
		this.longestWord = longestWord;
	}

	/**
	 * @return the nbLetters
	 */
	public Integer[] getNbLetters() {
		return nbLetters;
	}

	/**
	 * @return the scoreByWords
	 */
	public int[] getScoreByWords() {
		return scoreByWords;
	}

	/**
	 * @param played the played to set
	 */
	public void setPlayed(int played) {
		this.played = played;
	}
	
	
	
	
}
